{include file="common/head"/}
<link rel="stylesheet" href="/static/treeview/jquery.treeview.css" />
<link rel="stylesheet" href="/static/treeview/red-treeview.css" />
<link rel="stylesheet" href="/static/treeview/screen.css" />
<link rel="stylesheet" type="text/css" href="/static/css/button.css" />
<script src="/static/treeview/lib/jquery.js" type="text/javascript"></script>
<script src="/static/treeview/jquery.treeview.js" type="text/javascript"></script>

<script type="text/javascript">
    $(function() {
        $("#tree").treeview({
            collapsed: true,
            animated: "medium",
            control:"#sidetreecontrol",
            persist: "location"
        });
    })

</script>
<div class="admin-main layui-anim layui-anim-upbit">
    <fieldset class="layui-elem-field layui-field-title">
        <legend>推荐关系</legend>
    </fieldset>
    <form action="{:url('tuijian')}" method="post">
        <div class="demoTable">
            <div class="layui-inline">
                <input class="layui-input" name="key" id="key" placeholder="{:lang('pleaseEnter')}会员手机号">
            </div>
            <button class="layui-btn" id="search" data-type="reload" type="submit">搜索</button>
            <!----  <button type="button" class="layui-btn layui-btn-danger" id="delAll">批量删除</button>---->
        </div>
    </form>

    <table class="layui-table" id="list" lay-filter="list"></table>
</div>
<div class="section2x mui-clearfix">
    <div id="sidetreecontrol"><a href="?#"><br />
        全部关闭</a> | <a href="?#">全部展开</a><br />
        <br />
    </div>
    <ul id="tree">
        <li><strong><?=$user['nickname']?></strong>
            <?php
			echo tree($user['id']);
		?>
        </li>
    </ul>
</div>
{include file="common/foot"/}
<script src="/static/plugins/layui/layui.js"></script>

</body>
</html>